<?php

namespace App\Http\Controllers\Admin;

use App\Http\Controllers\Controller;
use App\Models\Game\EventList;
use App\Models\Game\GamePackage;
use App\Models\Game\Server;
use App\Models\Game\UploadRecord;
use App\Models\Game\VersionEvent;
use App\Services\RedisService;
use App\Utils\MyLog;
use App\Utils\ResponseUtil;

class UploadRecordController extends Controller
{
    private RedisService $RedisService;

    /**
     * ServerController constructor.
     * @param RedisService $RedisService
     */
    public function __construct(RedisService $RedisService)
    {
        $this->RedisService = $RedisService;
    }

    public function list()
    {
        $list = UploadRecord::query()
            ->orderByDesc('created_at')
            ->get()
            ->toArray();

        return ResponseUtil::success($list);
    }


}
